import 'vant/lib/index.css';
import App from './App'
import uvUI from '@/uni_modules/uv-ui-tools'
import plugins from './plugins' // plugins
import Vant from 'vant';
// #ifdef VUE3
import { createSSRApp } from 'vue'
import * as Pinia from 'pinia';

export function createApp() {
	const app = createSSRApp(App)
	app.use(Pinia.createPinia())
	app.use(uvUI)
	app.use(plugins)
    app.use(Vant)
	
	
	// Lazyload 指令需要单独进行注册
    
	return {
		app,
		Pinia,
		
		 // 此处必须将 Pinia 返回
	}
}
// #endif